package com.bz.common;

import java.util.HashMap;
import java.util.Map;

public class ConfigUtils {
    public static Map<String, Map<String, String>> configMap = new HashMap<>();

    public static Map<String, String> getValue(String type) {
        return configMap.get(type);
    }

    public static String getValue(String type, String key) {
        Map<String, String> m = configMap.get(type);
        if (m != null) {
            return m.get(key);
        }
        return "";
    }

    public static Integer getInterValue(String type, String key) {
        Map<String, String> m = configMap.get(type);
        if (m != null) {
            return Integer.valueOf(m.get(key));
        }
        return null;
    }
}
